package com.huamoxi.client;

import com.huamoxi.response.UserInfoResponse;
import com.huamoxi.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(name = "UserService")
public interface UserServiceClient {

    @GetMapping("/user/getUserInfo")
    Result<UserInfoResponse> getUserInfo(@RequestHeader("Authorization") String authorization);
}
